package com.ssfGame.puremvc.model.vo 
{
	import flash.display.BitmapData;
	import flash.display.LoaderInfo;

	/**
	 * 
	 * @author chery
	 */
	public class LoadVO
	{
		
		//初始化数据
		public var title:String=""//加载标题
		public var type:String//加载类型,StaticConst.V_JSON StaticConst.V_IMG StaticConst.V_SWF
		public var url:String//资源路径
		public var classNameArr:Array//swf类名字数组,加载v_json和v_img不需要设置
		public var isSendLoadPro:Boolean=true//是否发送加载进度
		public var domain:uint=1//1:子域默认,2:当前域
		
		public var state:String//加载状态 StaticConst.V_SUCCESS,StaticConst.V_FAILEL
		//数据加载完成
		public var data:Object//加载类型为:StaticConst.V_JSON
		public var bitmapData:BitmapData//加载类型为:StaticConst.V_IMG
		public var classArr:Array//加载类型为:StaticConst.V_SWF
		public var loaderInfo:LoaderInfo;//
		//加载进度
		public var startTime:uint;//加载开始时间
		public var progress:Number;//加载进度
		public var speed:String//加载速度
		public function LoadVO()
		{
		}
		public function gc():void{
			title=null
			type=null
			url=null
			if(classNameArr!=null&&classNameArr.length>0){
				classNameArr.splice(0,classNameArr.length)
				classNameArr=null
				
			}
			isSendLoadPro=false
			domain=1
			state=null
			data=null
			bitmapData=null
			if(classNameArr!=null&&classArr.length>0){
				classArr.splice(0,classArr.length)
				classArr=null
			}
			startTime=0
			progress=0
			speed=null
			loaderInfo=null;
		}
	}
}